package ui;

public class Monkey {
    private int age;
    private String name;
    private String gender;
    public  Monkey(){
        //调用有参构造函数
    }

    public Monkey(int age, String name, String gender) {

        this.age = age;
        this.name = name;
        this.gender = gender;
        System.out.println(this.age);
        System.out.println(this.name);
        System.out.println(this.gender);
    }


    public static void main(String[] args) {
        System.out.println("Hello, World!");
        Monkey m1 = new Monkey(18, "Male", "Female");
        Node node =new Node(3);

    }
}

class Node{
    Node next;
    int data;
    public Node(int data){
        this.data = data;
        this.next = null;
    }
}